The Smart ComboBox Component > FSmartComboBox.setPersistent(bool)

 

FSmartComboBox.setPersistent(bool)

Availability

Macromedia Flash Player 6.

Usage

myCombo.setPersistent(bool);

Parameters

bool When this is set to true, items entered into the component will be persistent. When this is set to false, then items entered will be temporary.

Returns

Nothing.

Description

Allows you to define whether the component's history will be saved and reloaded across user sessions. True indicates that the data will be saved into a Shared Object and will be automatically loaded and displayed in subsequent user sessions. False indicates that the data will not be saved once the user's session ends.

Example

The following example shows how to use the method setPersistent to set the component to persist its history.

myCombo.setPersistent(true);

See also

FSmartComboBox.getPersistent